package com.xavier.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResultCode {

    /**
     * 操作成功标识
     */
    SUCCESS(200, "Success"),

    C301(301, "资源已被移除"),
    C303(303, "重定向"),
    C400(400, "参数列表错误"),
    C401(401, "没有此操作权限"),
    C403(403, "访问受限"),
    C404(404, "资源未找到"),
    C405(405, "请求方法错误"),
    SYS_ERROR(500, "系统错误"),
    C600(600, "用户未登录"),
    C601(601, "登录失效，请重新登录"),
    C602(602, "用户名和密码不匹配"),
    C603(603, "您的账号已经被禁用，请联系管理员"),
    C604(604, "账号已停用"),
    C605(700, "%s为空"),

    /**
     * 公用错误
     */
    COMMON_MESSAGE(1000, "%s"),

    ;


    public int code;
    public String desc;


}
